package com.techstar.api.service;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 
 * @author EinIce
 * @description 接口配置初始化
 * @date 2021年6月24日
 *
 */
@Configuration
public class ConfigProperties {
	
	@ConfigurationProperties(prefix = "traffic.roma-api")
	@Bean(name = "roma_api")
	public GateWayApiProperties romaApiProperties() {
		return new GateWayApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.dct")
	@Bean(name = "dct")
	public TrafficApiProperties dctApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.dcr")
	@Bean(name = "dcr")
	public TrafficApiProperties dcrApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.dcs")
	@Bean(name = "dcs")
	public TrafficApiProperties dcsApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.dcj")
	@Bean(name = "dcj")
	public TrafficApiProperties dcjApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.dov")
	@Bean(name = "dov")
	public TrafficApiProperties dovApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.dfr")
	@Bean(name = "dfr")
	public TrafficApiProperties dfrApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.dsf")
	@Bean(name = "dsf")
	public TrafficApiProperties dsfApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.dft")
	@Bean(name = "dft")
	public TrafficApiProperties dftApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.csft")
	@Bean(name = "csft")
	public TrafficApiProperties csftApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.drs")
	@Bean(name = "drs")
	public TrafficApiProperties drsApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.fct")
	@Bean(name = "fct")
	public TrafficApiProperties fctApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.fcr")
	@Bean(name = "fcr")
	public TrafficApiProperties fcrApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.fcse")
	@Bean(name = "fcse")
	public TrafficApiProperties fcseApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.fcst")
	@Bean(name = "fcst")
	public TrafficApiProperties fcstApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.sfr")
	@Bean(name = "sfr")
	public TrafficApiProperties sfrApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.fft")
	@Bean(name = "fft")
	public TrafficApiProperties fftApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.fsft")
	@Bean(name = "fsft")
	public TrafficApiProperties fsftApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.gis-ta")
	@Bean(name = "gis-ta")
	public TrafficApiProperties gistaApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.gis-te")
	@Bean(name = "gis-te")
	public TrafficApiProperties gisteApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.gis-cs")
	@Bean(name = "gis-cs")
	public TrafficApiProperties giscsApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.gis-fsi")
	@Bean(name = "gis-fsi")
	public TrafficApiProperties gisfsiApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.gis-mr")
	@Bean(name = "gis-mr")
	public TrafficApiProperties gismrApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.gis-sg")
	@Bean(name = "gis-sg")
	public TrafficApiProperties gissgApiProperties() {
		return new TrafficApiProperties();
	}
	
	@ConfigurationProperties(prefix = "traffic.api.gis-bl")
	@Bean(name = "gis-bl")
	public TrafficApiProperties gisblApiProperties() {
		return new TrafficApiProperties();
	}
}
